package com.yjy.shop.bank;

/**
 * 门面模式 - 结构型设计模式
 */
public class BankFacade {

    public void openAccountAndCreditCard(){
        openAccount();
        oauth();
        openCreditCard();
    }

    public void openAccount(){
        System.out.println("开户。。。1000");
    }

    public void oauth(){
        System.out.println("认证。。。1000");
    }

    public void openCreditCard(){
        System.out.println("开信用卡。。。1000");
    }

    public static void main(String[] args) {
        BankFacade bankFacade = new BankFacade();
        bankFacade.openAccountAndCreditCard();
    }


}
